﻿using System;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Sharp.Platform.Mvc.Models;

namespace Sharp.WebBooter.Areas.CMS.Models
{
    public class NoiseWordIndexViewModel : BaseViewModel
    {
        [HiddenInput]
        public Guid Id { get; set; }
        /// <summary>
        /// 敏感词
        /// </summary>
        [StringLength(255), Display(Name = "敏感词"), Required]
        public string Noise { get; set; }
        /// <summary>
        /// 替换
        /// </summary>
        [StringLength(10), Display(Name = "替换")]
        public string Replacement { get; set; }
        /// <summary>
        /// 禁止？
        /// </summary> 
        [Display(Name = "禁止")]
        public bool IsBan { get; set; }
    }
}